

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
    <style>
    /* base */
    html,
    body,
    .container {
      width: 100%;
      height: 100%;
    }

    a,
    a:link,
    a:visited {
      text-decoration: none;
      color: inherit;
    }

    ul {
      list-style: none;
    }

    *,
    ::before,
    ::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    *:focus {
      outline: 0;
    }

    .container {
      display: flex;
      padding-top: 20px;
    }

    /* Nav */
    .container .doc-nav {
      position: fixed;
      height: 100%;
      margin: 0 30px 0 40px;
      width: 280px;
    }

    .doc-nav .nav-header {
      display: flex;
      align-items: center;
      box-sizing: border-box;
      background-color: rgb(240, 241, 242);
      height: 40px;
      padding: 16px;
      font-size: 18px;
      font-weight: 500;
      color: rgb(62, 64, 66);
      cursor: pointer;
    }

    .doc-nav .nav-content {
      height: calc(100% - 40px);
      overflow-y: auto;
      color: rgb(32, 34, 36);
    }

    .doc-nav .nav-content .nav-list,
    .doc-nav .nav-content .nav-sub-list {
      line-height: 1.5rem;
    }

    .doc-nav .nav-content .nav-label {
      display: inline-block;
      position: relative;
      padding: 2px 0 2px 20px;
      margin-bottom: 4px;
    }

    .doc-nav .nav-content .nav-sub-label {
      position: relative;
      padding: 2px 0 2px 40px;
      font-size: 14px;
    }

    .doc-nav .nav-content .nav-sub-label:hover {
      text-decoration: underline;
    }

    .doc-nav .nav-content .nav-list .nav-label.group::before {
      border-bottom: 0.25rem solid transparent;
      border-left: 0.25rem solid #6e7072;
      border-right: 0;
      border-top: 0.25rem solid transparent;
      content: '';
      display: block;
      height: 0;
      left: 0.5rem;
      position: absolute;
      top: 0.625rem;
      transition: transform 0.1s linear;
      width: 0;
    }

    .doc-nav .nav-content .nav-list .nav-label.group.active::before {
      transform: rotate(90deg);
    }

    /* doc content */
    .container .doc-content {
      position: fixed;
      height: 100%;
      width: calc(100% - 80px - 40px - 30px - 240px);
      right: 0%;
      overflow-y: auto;
    }

    .doc-title {
      border-bottom: 1px solid #dcdee0;
      font-size: 22px;
      margin: 8px 0 0;
      padding-bottom: 16px;
    }

    .doc-content h3 {
      font-size: 24px;
      font-weight: 600;
      margin: 24px 0;
    }

    .doc-content h4 {
      font-size: 22px;
      font-weight: 500;
      margin: 30px 0 8px;
    }

    .doc-content h4 span {
      color: #007d9c;
    }

    .doc-content .doc-declare {
      background-color: #fafafa;
      border-radius: 5px;
      border: 1px solid #ccc;
      font-size: 14px;
      overflow-x: auto;
      padding: 10px;
      tab-size: 4;
      line-height: 20px;
    }

    .doc-content .doc-comment {
      font-size: 16px;
      margin: 16px 0;
      line-height: 24px;
      word-break: break-word;
    }
  </style>

</head>
<body>
  <div class="container">
    <div class="doc-nav">
      <a href="#Documentation" class="nav-header">Documentation</a>
      <nav class="nav-content">
        <ul class="nav-list">
          <li>
            <a href="#includes" class="nav-label">Includes</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#config.h" class="nav-sub-label">config.h</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_CONFIG_FILE" class="nav-sub-label">MBEDTLS_CONFIG_FILE</a>
              </li>
      

              <li>
                <a href="#stddef.h" class="nav-sub-label">stddef.h</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#macros" class="nav-label">Macros</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#MBEDTLS_MEMORY_BUFFER_ALLOC_H" class="nav-sub-label">MBEDTLS_MEMORY_BUFFER_ALLOC_H</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_MEMORY_ALIGN_MULTIPLE" class="nav-sub-label">MBEDTLS_MEMORY_ALIGN_MULTIPLE</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_MEMORY_VERIFY_NONE" class="nav-sub-label">MBEDTLS_MEMORY_VERIFY_NONE</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_MEMORY_VERIFY_ALLOC" class="nav-sub-label">MBEDTLS_MEMORY_VERIFY_ALLOC</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_MEMORY_VERIFY_FREE" class="nav-sub-label">MBEDTLS_MEMORY_VERIFY_FREE</a>
              </li>
      

              <li>
                <a href="#MBEDTLS_MEMORY_VERIFY_ALWAYS" class="nav-sub-label">MBEDTLS_MEMORY_VERIFY_ALWAYS</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#functions" class="nav-label">Functions</a>
             
            <ul class="nav-sub-list">

              <li>
                <a href="#mbedtls_memory_buffer_alloc_init" class="nav-sub-label">mbedtls_memory_buffer_alloc_init</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_free" class="nav-sub-label">mbedtls_memory_buffer_alloc_free</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_set_verify" class="nav-sub-label">mbedtls_memory_buffer_set_verify</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_status" class="nav-sub-label">mbedtls_memory_buffer_alloc_status</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_max_get" class="nav-sub-label">mbedtls_memory_buffer_alloc_max_get</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_max_reset" class="nav-sub-label">mbedtls_memory_buffer_alloc_max_reset</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_cur_get" class="nav-sub-label">mbedtls_memory_buffer_alloc_cur_get</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_verify" class="nav-sub-label">mbedtls_memory_buffer_alloc_verify</a>
              </li>
      

              <li>
                <a href="#mbedtls_memory_buffer_alloc_self_test" class="nav-sub-label">mbedtls_memory_buffer_alloc_self_test</a>
              </li>
      
            </ul>
            
          </li>
          <li>
            <a href="#vars" class="nav-label">Vars</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#consts" class="nav-label">Consts</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#types" class="nav-label">Types</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
          <li>
            <a href="#typedefs" class="nav-label">Typedefs</a>
            
            <ul class="nav-sub-list">
            
            </ul>
            
          </li>
        </ul>
      </nav>
    </div>
    <div class="doc-content">
      <h2 id="Documentation" class="doc-title">Documentation</h2>
      <h3 id="includes">Includes</h3>
      

      <h4 id="config.h"><span>config.h</span></h4>
      <pre class="doc-declare"><code>#include "config.h"
</code></pre>
      <pre class="doc-comment">#include "config.h"
</pre>

      <h4 id="MBEDTLS_CONFIG_FILE"><span>MBEDTLS_CONFIG_FILE</span></h4>
      <pre class="doc-declare"><code>#include MBEDTLS_CONFIG_FILE
</code></pre>
      <pre class="doc-comment">#include MBEDTLS_CONFIG_FILE
</pre>

      <h4 id="stddef.h"><span>stddef.h</span></h4>
      <pre class="doc-declare"><code>#include &lt;stddef.h&gt;
</code></pre>
      <pre class="doc-comment">#include <stddef.h>
</pre>
      <h3 id="macros">Macros</h3>
      

      <h4 id="MBEDTLS_MEMORY_BUFFER_ALLOC_H">Marco <span>MBEDTLS_MEMORY_BUFFER_ALLOC_H</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_BUFFER_ALLOC_H
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="MBEDTLS_MEMORY_ALIGN_MULTIPLE">Marco <span>MBEDTLS_MEMORY_ALIGN_MULTIPLE</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_ALIGN_MULTIPLE      4 /**< Align on multiples of this value */
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="MBEDTLS_MEMORY_VERIFY_NONE">Marco <span>MBEDTLS_MEMORY_VERIFY_NONE</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_VERIFY_NONE        0
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="MBEDTLS_MEMORY_VERIFY_ALLOC">Marco <span>MBEDTLS_MEMORY_VERIFY_ALLOC</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_VERIFY_ALLOC       (1 << 0)
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="MBEDTLS_MEMORY_VERIFY_FREE">Marco <span>MBEDTLS_MEMORY_VERIFY_FREE</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_VERIFY_FREE        (1 << 1)
</code></pre>
      <pre class="doc-comment"></pre>

      <h4 id="MBEDTLS_MEMORY_VERIFY_ALWAYS">Marco <span>MBEDTLS_MEMORY_VERIFY_ALWAYS</span></h4>
      <pre class="doc-declare"><code>#define MBEDTLS_MEMORY_VERIFY_ALWAYS      (MBEDTLS_MEMORY_VERIFY_ALLOC | MBEDTLS_MEMORY_VERIFY_FREE)
</code></pre>
      <pre class="doc-comment"></pre>
      <h3 id="functions">Functions</h3>
      

      <h4 id="mbedtls_memory_buffer_alloc_init">Func <span>mbedtls_memory_buffer_alloc_init</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_init( unsigned char *buf, size_t len );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Initialize use of stack-based memory allocator.
 *          The stack-based allocator does memory management inside the
 *          presented buffer and does not call calloc() and free().
 *          It sets the global mbedtls_calloc() and mbedtls_free() pointers
 *          to its own functions.
 *          (Provided mbedtls_calloc() and mbedtls_free() are thread-safe if
 *           MBEDTLS_THREADING_C is defined)
 *
 * \note    This code is not optimized and provides a straight-forward
 *          implementation of a stack-based memory allocator.
 *
 * \param buf   buffer to use as heap
 * \param len   size of the buffer
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_free">Func <span>mbedtls_memory_buffer_alloc_free</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_free( void );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Free the mutex for thread-safety and clear remaining memory
 */</pre>

      <h4 id="mbedtls_memory_buffer_set_verify">Func <span>mbedtls_memory_buffer_set_verify</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_set_verify( int verify );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Determine when the allocator should automatically verify the state
 *          of the entire chain of headers / meta-data.
 *          (Default: MBEDTLS_MEMORY_VERIFY_NONE)
 *
 * \param verify    One of MBEDTLS_MEMORY_VERIFY_NONE, MBEDTLS_MEMORY_VERIFY_ALLOC,
 *                  MBEDTLS_MEMORY_VERIFY_FREE or MBEDTLS_MEMORY_VERIFY_ALWAYS
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_status">Func <span>mbedtls_memory_buffer_alloc_status</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_status( void );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Print out the status of the allocated memory (primarily for use
 *          after a program should have de-allocated all memory)
 *          Prints out a list of 'still allocated' blocks and their stack
 *          trace if MBEDTLS_MEMORY_BACKTRACE is defined.
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_max_get">Func <span>mbedtls_memory_buffer_alloc_max_get</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_max_get( size_t *max_used, size_t *max_blocks );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Get the peak heap usage so far
 *
 * \param max_used      Peak number of bytes in use or committed. This
 *                      includes bytes in allocated blocks too small to split
 *                      into smaller blocks but larger than the requested size.
 * \param max_blocks    Peak number of blocks in use, including free and used
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_max_reset">Func <span>mbedtls_memory_buffer_alloc_max_reset</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_max_reset( void );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Reset peak statistics
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_cur_get">Func <span>mbedtls_memory_buffer_alloc_cur_get</span></h4>
      <pre class="doc-declare"><code>void mbedtls_memory_buffer_alloc_cur_get( size_t *cur_used, size_t *cur_blocks );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Get the current heap usage
 *
 * \param cur_used      Current number of bytes in use or committed. This
 *                      includes bytes in allocated blocks too small to split
 *                      into smaller blocks but larger than the requested size.
 * \param cur_blocks    Current number of blocks in use, including free and used
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_verify">Func <span>mbedtls_memory_buffer_alloc_verify</span></h4>
      <pre class="doc-declare"><code>int mbedtls_memory_buffer_alloc_verify( void );</code></pre>
      <pre class="doc-comment">/**
 * \brief   Verifies that all headers in the memory buffer are correct
 *          and contain sane values. Helps debug buffer-overflow errors.
 *
 *          Prints out first failure if MBEDTLS_MEMORY_DEBUG is defined.
 *          Prints out full header information if MBEDTLS_MEMORY_DEBUG
 *          is defined. (Includes stack trace information for each block if
 *          MBEDTLS_MEMORY_BACKTRACE is defined as well).
 *
 * \return             0 if verified, 1 otherwise
 */</pre>

      <h4 id="mbedtls_memory_buffer_alloc_self_test">Func <span>mbedtls_memory_buffer_alloc_self_test</span></h4>
      <pre class="doc-declare"><code>int mbedtls_memory_buffer_alloc_self_test( int verbose );</code></pre>
      <pre class="doc-comment">/**
 * \brief          Checkup routine
 *
 * \return         0 if successful, or 1 if a test failed
 */</pre>
      <h3 id="vars">Vars</h3>
      
      <h3 id="consts">Consts</h3>
      
      <h3 id="types">Types</h3>
      
      <h3 id="typedefs">Typedefs</h3>
      
    </div>
  </body>
</html>
            